package com.tanggh.service;

import java.util.List;

public interface GenericService<M extends java.io.Serializable> {
	
	public Integer save(M model);

	public void saveOrUpdate(M model);

	public void update(M model);

	public void merge(M model);

	public void delete(Integer id);

	public void deleteObject(M model);

	public M get(Integer id);

	public int countAll();

	public List<M> listAll();

	public boolean exists(Integer id);
}
